//环境配置文件
//当前环境
const env = import.meta.env.MODE || "prod";
const EnvConfig = {
  development: {
    baseApi: "/api",
    mockApi:
      "https://www.fastmock.site/mock/fae8a86422136db6299e87c4fddd3e08/api",
  },
  test: {
    baseApi: "//test.future.com/api",
    mockApi:
      "https://www.fastmock.site/mock/fae8a86422136db6299e87c4fddd3e08/api",
  },
  prod: {
    baseApi: "//future.com/api",
    mockApi:
      "https://www.fastmock.site/mock/fae8a86422136db6299e87c4fddd3e08/api",
  },
};

export default {
  env,
  //mock总开关 true是线上mock地址 否则本地mock
  mock: false,
  ...EnvConfig[env],
};
